//
//  Extra3ViewController.h
//  ToucheTouche
//
//  Created by polytech polytech on 11/01/12.
//  Copyright (c) 2012 polytech. All rights reserved.
//

#import <UIKit/UIKit.h>

@class GameAventureViewController;

@protocol Extra3ViewControllerDelegate <NSObject>
@optional

@end

@interface Extra3ViewController : UIViewController <UIAlertViewDelegate> {
    float temps;
    float reaction;
    NSInteger score;
    NSTimer *chrono;
    float random;
    bool click;
    bool image;
    UIAlertView *alertLevel;
}

@property (nonatomic, retain) UIAlertView *alertLevel;
@property (retain, nonatomic) IBOutlet UIButton *button;
@property (retain, nonatomic) IBOutlet UIImageView *imageView;
@property (nonatomic,assign) float temps;
@property (nonatomic,assign) float random;
@property (nonatomic,assign) float reaction;
@property (nonatomic,assign) bool click;
@property (nonatomic,assign) bool image;

@property (nonatomic,assign) NSInteger score;

@property (nonatomic, retain) id <Extra3ViewControllerDelegate> delegate;
@property (nonatomic, retain) GameAventureViewController *gameAventureViewController;

- (void)timer :(float) tmp ;
- (void)countTime ;
- (void) updateCountTime:(NSTimer *) aTimer;
- (void)stopTimer;
- (void) updateTimer:(NSTimer *) aTimer;
- (void) countScore;

- (IBAction)actionButton;
- (void) changeImage;
@end
